package iqq.ui.view.panel;

import iqq.ui.view.panel.login.CenterPl;
import iqq.ui.view.panel.login.FooterPl;
import iqq.ui.view.panel.login.HeaderPl;
import iqq.ui.view.panel.login.proc.ProcCenterPl;

import com.alee.laf.panel.WebPanel;

/**
 * @author ChenZhiHui
 * @create-time 2013-3-8
 */
public class LoginPlFactory {
	private static WebPanel headerPl;
	private static WebPanel centerPl;
	private static WebPanel footerPl;

	private static WebPanel procPl;

	public static WebPanel getHeaderPl() {
		if (headerPl == null) {
			headerPl = new HeaderPl();
		}
		return headerPl;
	}

	public static WebPanel getCenterPl() {
		if (centerPl == null) {
			centerPl = new CenterPl();
		}
		return centerPl;
	}

	public static WebPanel getFooterPl() {
		if (footerPl == null) {
			footerPl = new FooterPl();
		}
		return footerPl;
	}

	public static WebPanel getProcPl() {
		if (procPl == null) {
			procPl = new ProcCenterPl();
		}
		return procPl;
	}
}
